//
// Created by YH-Mac on 2021/3/24.
//

#ifndef RETINAFACE_C_API_H
#define RETINAFACE_C_API_H

#if defined(_WIN32)
#ifdef SG_BUILD_SHARED_LIB
#define SG_CAPI_EXPORT __declspec(dllexport)
#else
#define SG_CAPI_EXPORT
#endif
#else
#define SG_CAPI_EXPORT __attribute__((visibility("default")))
#endif  // _WIN32

#ifdef __cplusplus
extern "C" {
#endif

SG_CAPI_EXPORT extern long InitDetectorSession(char *models_path);

SG_CAPI_EXPORT extern void ReleaseDetectorSession(long session);

SG_CAPI_EXPORT extern void
FaceDetection(long session, char *image, int w, int h, int level, float **output, int *outputNum);

SG_CAPI_EXPORT extern void FreeFloat(float **memblock);

#ifdef __cplusplus
}
#endif


#endif //RETINAFACE_C_API_H
